package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————课程类型类
 * @date 2019-12-18 14:32
 */
@Entity
@Table(name = "course_type")
public class CourseType implements Serializable {

    private static final long serialVersionUID = 2416312502564027209L;

    @Id
    @GeneratedValue
    @Column(name = "course_type_Id")
    private Integer courseTypeId;// 课程类型ID

    @Column(name = "pid")
    private Integer pid;//父级ID，默认为0

    @Column(name = "typeName", length = 32)
    private String typeName;// 父级类型

    @Column(name = "comment", length = 255)
    private String comment;// 备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    public CourseType() {
        // 无参构造
    }

    public Integer getCourseTypeId() {
        return courseTypeId;
    }

    public void setCourseTypeId(Integer courseTypeId) {
        this.courseTypeId = courseTypeId;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "CourseType [courseTypeId=" + courseTypeId + ", pid=" + pid + ", typeName=" + typeName + ", comment="
                + comment + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }


}
